package com.springboot.study.tests.designpattern.decoreator2;

/**
 * @Author: guodong
 * @Date: 2021/5/6 11:05
 * @Version: 1.0
 * @Description:
 */
public class SausageDecorator extends BattercakeDecotator {

    public SausageDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    protected String getMsg() {
        return super.getMsg()+ "1根香肠";
    }

    @Override
    protected int getPrice() {
        return super.getPrice()+2;
    }

}
